import request from '@/utils/request'

// 查询国家列列表
export function listTbcountry(query) {
  return request({
    url: '/apartment/tbcountry/list',
    method: 'get',
    params: query
  })
}

// 查询国家列详细
export function getTbcountry(id) {
  return request({
    url: '/apartment/tbcountry/' + id,
    method: 'get'
  })
}

// 新增国家列
export function addTbcountry(data) {
  return request({
    url: '/apartment/tbcountry',
    method: 'post',
    data: data
  })
}

// 修改国家列
export function updateTbcountry(data) {
  return request({
    url: '/apartment/tbcountry',
    method: 'put',
    data: data
  })
}

// 删除国家列
export function delTbcountry(id) {
  return request({
    url: '/apartment/tbcountry/' + id,
    method: 'delete'
  })
}
